package 上课day1;

import java.util.HashSet;
import java.util.Random;
import java.util.Set;

public class project_demo10 {
	public static void main(String[] args) {
		Set<Integer> set = new HashSet<>();
		
		while(set.size() <= 20) {
			set.add(new Random().nextInt(100));
		}
		for (Integer integer : set) {
			System.out.println(integer);
		}
	}
}
